package global

import (
	"time"

	"gorm.io/gorm"
)

type BaseModel struct {
	ID        uint `gorm:"primarykey"`
	CreatedAt time.Time
	UpdatedAt time.Time
	DeletedAt gorm.DeletedAt `gorm:"index" json:"-"`
}


type ControlBy struct {
	CreateBy int `json:"createBy" gorm:"column:createBy;comment:创建者"`
	UpdateBy int `json:"updateBy" gorm:"column:updateBy;comment:更新者"`
}
